home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
COMAL
/
cboot.d64
/
keyword'print.l
< prev
next >
Wrap
Text File
|
2009-01-23
|
739b
|
29 lines
0010 //PEEK THE LOCATION OF THE KEYWORDS
0020 //BY COLIN THOMPSON
0030 DIM REPLY$ OF 1, KEYWORD$ OF 13
0040 INPUT "OUTPUT TO PRINTER? (Y/N);": REPLY$
0050 IF REPLY$="Y" OR REPLY$="Y" THEN PRINTER
0060 FOR LOC:=2068 TO 2800 DO
0070 CHAR:=PEEK(LOC)
0080 IF CHAR<12 THEN DISPLAY
0090 CHAR:+64
0100 IF CHAR>96 THEN CHAR:-32
0110 BUILD'STRING
0120 ENDFOR LOC
0130 SELECT OUTPUT "DS:" // OUTPUT TO SCREEN
0140 //
0150 PROC DISPLAY
0160 KEYWORD$(1):=" "
0170 PRINT "LOCATION";(LOC-CHAR)-1;"IS";KEYWORD$
0180 KEYWORD$:=""
0190 ENDPROC DISPLAY
0200 //
0210 PROC BUILD'STRING
0220 KEYWORD$:=KEYWORD$+CHR$(CHAR)
0230 ENDPROC BUILD'STRING
0240 //
0250 PROC PRINTER
0260 OPEN FILE 255,"",UNIT 4,7,WRITE
0270 SELECT OUTPUT "LP:"
0280 ENDPROC PRINTER